#ifndef FACIAL_RECOGNITION_CORE_UTILS_H
#define FACIAL_RECOGNITION_CORE_UTILS_H

#include <iostream>
#include <string>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <typeinfo>

#include "../../inc/arcsoft_face_sdk.h"
#include "../../inc/amcomdef.h"
#include "../../inc/asvloffscreen.h"
#include "../../inc/merror.h"

namespace ai::facial_recognition {

    //时间戳转换为日期格式
    void timestampToTime(char *timeStamp, char *dateTime, int dateTimeSize);

    void convert_hex_str_to_char(const std::string &str, unsigned char *char_array);

    std::string convert_unsigned_char_pointer_to_hex(unsigned char *data, int len);

    int ColorSpaceConversion(MInt32 width, MInt32 height, MInt32 format, MUInt8 *imgData, ASVLOFFSCREEN &offscreen);

    std::string generate_uuid();
}

#endif //FACIAL_RECOGNITION_CORE_UTILS_H